package jdbc1;

import java.util.Scanner;

public class TestAdmin {
    public static void main(String[] args) throws Exception {
        Scanner scanner = new Scanner(System.in);
        Jdbc jdbc = new Jdbc();
        System.out.println("------欢迎使用，请登录！------");
        System.out.println("账户：");
        String admin = scanner.next();
        System.out.println("密码：");
        String passWord = scanner.next();
        boolean admin1 = jdbc.isAdmin(admin, passWord);
        if(admin1){
            System.out.println("已登录");
        }else{
            System.out.println("账户不存在或密码错误，请重试！");
        }
    }
}
